package com.code.splider.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.code.splider.service.EventService;

@Controller
@RequestMapping("event")
public class EventController {

	@Resource
	private EventService eventService;
	
	@RequestMapping(value ="saveEventDetail")
	public String saveEventDetail(){
		String url="http://www.dszuqiu.com";
		eventService.saveEventDetail(url);
		return "result";
	}
	
	@RequestMapping(value ="saveEvent")
	public String saveEvent(){
		String url="http://www.dszuqiu.com/data/all";
		eventService.saveEvent(url);
		return "result";
	}
}
